import request from "@/utils/request.js";
const baseUrl = '/cloud-sys-service/exam-paper'

/**
 * 分页查询考试排行榜
 */
export function page(data) {
    return request({
        url: baseUrl + '/page',
        method: 'post',
        data
    })
}

/**
 * 发放考卷
 */
export function sendExamPaper(params) {
    return request({
        url: baseUrl + '/send-exam-paper',
        method: 'get',
        params
    })
}


// 列表相关列信息
export const columnInfo = [
    {
        "title":"序号",
        "type":"seq",
        "fixed":"left",
        "align":"center",
        "width":"60"
    },
    {
        "title":"姓名",
        "field":"examUserName",
        "align":"center",
        "width":"100"
    },
    {
        "title":"得分",
        "field":"examScore",
        "showOverflow":"title",
        "align":"center",
        "minWidth":"70"
    },
    {
        "title":"考试结果",
        "field":"examResult",
        "proxyColumn":true,
        "align":"center",
        "width":"90"
    },
    {
        "title":"开始时间",
        "field":"examStartTime",
        "align":"center",
        "minWidth":"130"
    },
    {
        "title":"结束时间",
        "field":"submitPaperTime",
        "align":"center",
        "minWidth":"130"
    },
/*    {
        "title":"操作",
        "field":"operate",
        "fixed":"left",
        "align":"center",
        "proxyColumn":true,
        "width":"140px",
        /!*"options":[
            {
                "text":true,
                "btnName":"重置密码",
                "type":"primary",
                "icon":"RefreshLeft",
                "method":"showFormDialog"
            },
        ]*!/
    }*/
]
